﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Pibby.Core
{
	public class DownloadableCollection : Collection<IDownloadable>
	{
		public long TotalSize
		{
			get
			{
				long total = 0;

				foreach (IDownloadable download in this)
				{
					total += download.FileSize;
				}

				return total;
			}
		}
	}
}
